﻿package mortal.game.view.rebate.openServerSevenDay.data
{
    import Message.Game.*;
    import Message.Public.*;
    import extend.language.*;
    import flash.utils.*;
    import mortal.game.view.rebate.data.*;

    public class OpenServerSevenDayCache extends Object
    {
        public var sevenDayTabArr:Array;
        public var sevenDayRangeTabArr:Array;
        public var consumRewardInfo:SConsumRewardInfo;
        public const comsumTotalNum:int = 50;
        public const comsumOneMoney:int = 200;
        public var ruleStrObj:Object;
        public var nameStrObj:Object;
        public var targetTypeNameStrObj:Object;
        public var dayNumToCfgTargetType:Object;
        public var TargetTypeToRangeTypeObj:Object;
        public var RangeTypeToTargetTypeObj:Object;
        public var toplists:Array;
        public var canGet:int = 0;
        private var _result:Dictionary;
        public var rankPanelList:Array;

        public function OpenServerSevenDayCache()
        {
            this.sevenDayTabArr = [];
            this.sevenDayRangeTabArr = [];
            this.ruleStrObj = {99:"" + Language.getString(71829), 0:"" + Language.getString(71830), 1:"" + Language.getString(71831), 2:"" + Language.getString(71832), 3:"" + Language.getString(71833), 4:"" + Language.getString(71834), 5:"" + Language.getString(71835), 6:"" + Language.getString(71836), 7:"" + Language.getString(71837)};
            this.nameStrObj = {99:"" + Language.getString(71838), 0:"" + Language.getString(71839), 1:"" + Language.getString(71840), 2:"" + Language.getString(71841), 3:"" + Language.getString(71842), 4:"" + Language.getString(71843), 5:"" + Language.getString(71844), 6:"" + Language.getString(71845), 7:"" + Language.getString(71846)};
            this.targetTypeNameStrObj = {1:"" + Language.getString(71847), 2:"" + Language.getString(71848), 3:"" + Language.getString(71849), 6:"" + Language.getString(71850), 4:"" + Language.getString(71851), 5:"" + Language.getString(71852), 7:"" + Language.getString(71853), 8:"" + Language.getString(71854), 9:"" + Language.getString(71855), 10:"" + Language.getString(71856), 11:"" + Language.getString(71857), 12:"" + Language.getString(71858), 13:"" + Language.getString(71859)};
            this.dayNumToCfgTargetType = {99:ETargetType._ETargetTypeCombat, 0:ETargetType._ETargetTypePlayerLevel, 1:ETargetType._ETargetTypeMountRank, 2:ETargetType._ETargetTypePetGrowth, 3:ETargetType._ETargetTypeWing, 4:ETargetType._ETargetTypeFashion, 5:ETargetType._ETargetTypeWeaponFashion, 6:ETargetType._ETargetTypeFightSoul, 7:ETargetType._ETargetTypeLawPosition};
            this.TargetTypeToRangeTypeObj = {1:EToplistType._EToplistTypePlayerCombat, 2:EToplistType._EToplistTypePlayerLevel, 3:EToplistType._EToplistTypeMountRank, 4:EToplistType._EToplistTypeWing, 5:EToplistType._EToplistTypeFashion, 6:EToplistType._EToplistTypePetGrowth, 7:EToplistType._EToplistTypeWeapon, 8:EToplistType._EToplistTypeFightSoul, 9:EToplistType._EToplistTypeFightMethod};
            this.RangeTypeToTargetTypeObj = {1:1, 2:2, 13:3, 18:4, 17:5, 19:7, 9:6, 20:8, 21:9};
            this._result = new Dictionary();
            return;
        }// end function

        public function updateCanGetType(param1:int) : void
        {
            return;
        }// end function

        public function getTargetTypeName() : String
        {
            var _loc_1:String = "";
            var _loc_2:* = RebateUtil.getTargetType();
            _loc_1 = _loc_1 + this.targetTypeNameStrObj[_loc_2];
            return _loc_1;
        }// end function

        public function getNameByDay(param1:int) : String
        {
            var _loc_2:String = "";
            _loc_2 = _loc_2 + this.nameStrObj[param1];
            return _loc_2;
        }// end function

        public function getRangeTypeTyDayNum(param1:int) : int
        {
            var _loc_2:* = this.dayNumToCfgTargetType[param1];
            var _loc_3:* = this.TargetTypeToRangeTypeObj[_loc_2];
            return _loc_3;
        }// end function

        public function canGetFlag(param1:int, param2:int) : void
        {
            this.canGet = param1;
            this._result[param2] = param1;
            if (RebateUtil.isSevenDayRewardById(param2))
            {
                this.canGet = param1;
            }
            return;
        }// end function

        public function get result() : Dictionary
        {
            return this._result;
        }// end function

        public function set result(param1:Dictionary) : void
        {
            this._result = param1;
            return;
        }// end function

    }
}
